package com.staff.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="t_staff_reward")
public class StaffReward {
	private Long id;
	private Staff staff;
	private String rewAndPunTitle;
	private Date rewAndPunDate;
	private String rewAndPunContent;
	private String staffName;
	private String staffNum;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	
	@ManyToOne(cascade=CascadeType.ALL)
	public Staff getStaff() {
		return staff;
	}


	public String getStaffName() {
		return staffName;
	}

	public String getStaffNum() {
		return staffNum;
	}

	public String getRewAndPunTitle() {
		return rewAndPunTitle;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getRewAndPunDate() {
		return rewAndPunDate;
	}
	public String getRewAndPunContent() {
		return rewAndPunContent;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setStaff(Staff staff) {
		this.staff = staff;
	}
	public void setRewAndPunTitle(String rewAndPunTitle) {
		this.rewAndPunTitle = rewAndPunTitle;
	}
	public void setRewAndPunDate(Date rewAndPunDate) {
		this.rewAndPunDate = rewAndPunDate;
	}
	public void setRewAndPunContent(String rewAndPunContent) {
		this.rewAndPunContent = rewAndPunContent;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}

	public void setStaffNum(String staffNum) {
		this.staffNum = staffNum;
	}
	
	
}
